﻿<%@ Page Language="C#" MasterPageFile="~/teachers/masterpage.Master" AutoEventWireup="true" CodeBehind="Changepassword.aspx.cs" Inherits="ESCHOOL.teachers.WebForm12" Title="Change Password" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

    .style3
    {
        margin-left: 40px;
    }
        .style8
        {
            text-align: left;
            width: 139px;
        }
        .style9
        {
            height: 22px;
            width: 141px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
    <table class="style1">
        <tr>
            <td class="style3">
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Panel ID="Panel1" runat="server">
                    <table class="style1">
                        <tr>
                            <td class="style8">
                                Old Password</td>
                            <td class="style9">
                                <asp:TextBox ID="TextBox1" runat="server" TextMode="Password"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="TextBox1" ErrorMessage="Plz enter password"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style8">
                                New Password</td>
                            <td class="style9">
                                <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="TextBox2" ErrorMessage="Plz enter new password"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style8">
                                Confirm Password</td>
                            <td class="style9">
                                <asp:TextBox ID="TextBox3" runat="server"  
                                    TextMode="Password"></asp:TextBox>
                            </td>
                            <td>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                    ControlToCompare="TextBox2" ControlToValidate="TextBox3" 
                                    ErrorMessage="Check password"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style8">
                                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Change" 
                                    style="height: 26px" />
                            </td>
                            <td class="style9">
                                <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Cancel" 
                                    CausesValidation="False" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <br />
                    <br />
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
        </tr>
    </table>
</p>
<p>
</p>
</asp:Content>
